package com.interface_;

import static com.interface_.IB.n1;

public class InterfaceDetail02 {
    public static void main(String[] args) {
        System.out.println(n1);

        //n1 = 20;
        //不能修改，说明是final



    }
}



interface IB {
    int n1 = 10;
    void hi();
}

interface IC {
    void say();
}

interface ID extends IC, IB {

}

//只能是public 或者是 默认
interface IE {

}

class Pig implements IB, IC {

    @Override
    public void hi() {

    }

    @Override
    public void say() {

    }
}